﻿using System;
using System.Xml;

namespace YArchitech.HCLoad.XmlData
{
	public class ChildWhJg : RoomLoad
	{
		public ChildWhJg(ChildCollect childCollect) : base(null)
		{
			this.parentCollect = childCollect;
		}

		public ChildCollect ParentChildCollect
		{
			get
			{
				return this.parentCollect;
			}
			set
			{
				this.parentCollect = value;
			}
		}

		public override RoomLoadCollect ParentRoomLoadCollect
		{
			get
			{
				return null;
			}
		}

		public override bool DoPropExchange(XmlElement xe4, bool bLoad)
		{
			if (!bLoad)
			{
				return false;
			}
			base.ID = int.Parse(xe4.GetAttribute("ID"));
			base.WhType = int.Parse(xe4.GetAttribute("WhType"));
			base.Name = xe4.GetAttribute("Name");
			base.Description = xe4.GetAttribute("Description");
			base.ZsLfhXr = DataBase.StrToDblArr(xe4.GetAttribute("ZsLfhXr"));
			base.ZsLfhQr = DataBase.StrToDblArr(xe4.GetAttribute("ZsLfhQr"));
			base.ZsSfh = DataBase.StrToDblArr(xe4.GetAttribute("ZsSfh"));
			base.ColdTc = DataBase.StrToDblArr(xe4.GetAttribute("ColdTc"));
			this.ColdF11 = DataBase.StrToDblArr(xe4.GetAttribute("ColdF11"));
			this.ColdF2 = DataBase.StrToDblArr(xe4.GetAttribute("ColdF2"));
			this.ColdZsFsZd = DataBase.StrToDblArr(xe4.GetAttribute("ColdZsFsZd"));
			this.ColdSsFsZd = DataBase.StrToDblArr(xe4.GetAttribute("ColdSsFsZd"));
			this.ColdZsCl = DataBase.StrToDblArr(xe4.GetAttribute("ColdZsCl"));
			this.ColdSsCl = DataBase.StrToDblArr(xe4.GetAttribute("ColdSsCl"));
			this.ColdZsLoad = DataBase.StrToDblArr(xe4.GetAttribute("ColdZsLoad"));
			this.ColdSsLoad = DataBase.StrToDblArr(xe4.GetAttribute("ColdSsLoad"));
			this.ColdFsLoad = DataBase.StrToDblArr(xe4.GetAttribute("ColdFsLoad"));
			this.ColdCrLoad = DataBase.StrToDblArr(xe4.GetAttribute("ColdCrLoad"));
			base.ColdLoad = DataBase.StrToDblArr(xe4.GetAttribute("ColdLoad"));
			base.DjRfhXr = RoomLoad.ToDouble(xe4.GetAttribute("DjRfhXr"));
			base.DjRfhQr = RoomLoad.ToDouble(xe4.GetAttribute("DjRfhQr"));
			base.DjSfh = RoomLoad.ToDouble(xe4.GetAttribute("DjSfh"));
			base.HeatQj = RoomLoad.ToDouble(xe4.GetAttribute("HeatQj"));
			base.HeatQ1 = RoomLoad.ToDouble(xe4.GetAttribute("HeatQ1"));
			return true;
		}

		public double[] ColdF11
		{
			get
			{
				return this.adColdF11;
			}
			set
			{
				this.adColdF11 = value;
			}
		}

		public double[] ColdF2
		{
			get
			{
				return this.adColdF2;
			}
			set
			{
				this.adColdF2 = value;
			}
		}

		public double[] ColdZsFsZd
		{
			get
			{
				return this.adColdZsFsZd;
			}
			set
			{
				this.adColdZsFsZd = value;
			}
		}

		public double[] ColdSsFsZd
		{
			get
			{
				return this.adColdSsFsZd;
			}
			set
			{
				this.adColdSsFsZd = value;
			}
		}

		public double[] ColdZsCl
		{
			get
			{
				return this.adColdZsCl;
			}
			set
			{
				this.adColdZsCl = value;
			}
		}

		public double[] ColdSsCl
		{
			get
			{
				return this.adColdSsCl;
			}
			set
			{
				this.adColdSsCl = value;
			}
		}

		public double[] ColdZsLoad
		{
			get
			{
				return this.adColdZsLoad;
			}
			set
			{
				this.adColdZsLoad = value;
			}
		}

		public double[] ColdSsLoad
		{
			get
			{
				return this.adColdSsLoad;
			}
			set
			{
				this.adColdSsLoad = value;
			}
		}

		public double[] ColdFsLoad
		{
			get
			{
				return this.adColdFsLoad;
			}
			set
			{
				this.adColdFsLoad = value;
			}
		}

		public double[] ColdCrLoad
		{
			get
			{
				return this.adColdCrLoad;
			}
			set
			{
				this.adColdCrLoad = value;
			}
		}

		private ChildCollect parentCollect;

		private double[] adColdF11;

		private double[] adColdF2;

		private double[] adColdZsFsZd;

		private double[] adColdSsFsZd;

		private double[] adColdZsCl;

		private double[] adColdSsCl;

		private double[] adColdZsLoad;

		private double[] adColdSsLoad;

		private double[] adColdFsLoad;

		private double[] adColdCrLoad;
	}
}
